<?php
Yii::import('zii.widgets.CPortlet');

class CustomerRelationPortlet extends CPortlet{

	public $title ='Customer Relations';
	
	public $contentCssClass="portlet-content customer-relation-portlet";

	public $customer;

	protected function renderContent()
	{
		Yii::app()->clientScript->registerCoreScript('jquery');
		$this->render('relation',array('customer'=>$this->customer,'access'=>Yii::app()->user->checkAccess('customerInfoAccess',array(
		'customerId'=>$this->customer->id
		))
		));
	}
}